<template>
	<view>
		<swiper class="swiper" circular :autoplay="true" :interval="3000" :duration="300">
			<swiper-item v-for="(item, index) in list" :key="index">
				<image :src="item.imgUrl"></image>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		name:"xzfx-banner",
		props: {
			list: {
				type: Array,
				default: () => []
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped lang="scss">
	.swiper{
		height: calc((100vw - 50rpx) / 3 * 1.5);
		margin: 25rpx;
		border-radius: 20rpx;
		overflow: hidden;
		image{
			width: 100%;
			height: calc((100vw - 50rpx) / 3 * 1.5);
			display: block;
		}
	}
</style>